package com.jwsoft.manager.core.dao.model;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 随迁临时数据表
 *
 * @author zhiyuan
 * @since 2023-09-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("edu_bd_sbjzz")
@Schema(name = "EduBdSbjzz", title = "随迁临时数据表", description = "随迁临时数据表实体类")
public class EduBdSbjzz extends Model<EduBdSbjzz> {

    private static final long serialVersionUID = 1L;

    @Schema(name = "id", description = "id")
    @TableId(value = "id", type = IdType.INPUT)
    private Integer id;

    @Schema(name = "schoolName", description = "学校名称")
    @TableField(value = "school_name")
    private String schoolName;

    @Schema(name = "grade", description = "年级")
    @TableField(value = "grade")
    private String grade;

    @Schema(name = "studentName", description = "学生姓名")
    @TableField(value = "student_name")
    private String studentName;

    @Schema(name = "idcard", description = "身份证")
    @TableField(value = "idcard")
    private String idcard;

    @Schema(name = "fatherName", description = "父亲姓名")
    @TableField(value = "father_name")
    private String fatherName;

    @Schema(name = "fatherIdcard", description = "父亲身份证")
    @TableField(value = "father_idcard")
    private String fatherIdcard;

    @Schema(name = "fatherJzz", description = "父亲有无东阳居住证")
    @TableField(value = "father_jzz")
    private String fatherJzz;

    @Schema(name = "fatherSb", description = "父亲有无东阳社保")
    @TableField(value = "father_sb")
    private String fatherSb;

    @Schema(name = "motherName", description = "母亲姓名")
    @TableField(value = "mother_name")
    private String motherName;

    @Schema(name = "motherIdcard", description = "母亲身份证")
    @TableField(value = "mother_idcard")
    private String motherIdcard;

    @Schema(name = "motherJzz", description = "母亲有无东阳居住证")
    @TableField(value = "mother_jzz")
    private String motherJzz;

    @Schema(name = "motherSb", description = "母亲有无东阳社保")
    @TableField(value = "mother_sb")
    private String motherSb;

    @Schema(name = "optionFlag", description = "处理状态 0未处理  1已处理 2处理失败")
    @TableField(value = "option_flag")
    private String optionFlag;

    @Schema(name = "errorRemark", description = "错误原因")
    @TableField(value = "error_remark")
    private String errorRemark;

    @Override
    public Serializable pkVal() {
        return this.id;
    }
}
